package com.ruoyi.base.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.base.domain.AccountSets;

/**
 * 账套Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
public interface AccountSetsMapper extends BaseMapper<AccountSets>
{
    /**
     * 查询账套
     * 
     * @param id 账套主键
     * @return 账套
     */
    public AccountSets selectAccountSetsById(Long id);

    /**
     * 查询账套列表
     * 
     * @param accountSets 账套
     * @return 账套集合
     */
    public List<AccountSets> selectAccountSetsList(AccountSets accountSets);

    /**
     * 新增账套
     * 
     * @param accountSets 账套
     * @return 结果
     */
    public int insertAccountSets(AccountSets accountSets);

    /**
     * 修改账套
     * 
     * @param accountSets 账套
     * @return 结果
     */
    public int updateAccountSets(AccountSets accountSets);

    /**
     * 删除账套
     * 
     * @param id 账套主键
     * @return 结果
     */
    public int deleteAccountSetsById(Long id);

    /**
     * 批量删除账套
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAccountSetsByIds(Long[] ids);

    /**
    * @Description: 查询用户的默认账套
    * @Param: [userId]
    * @return: java.util.List<com.ruoyi.base.domain.AccountSets>
    * @Author: Yuan
    * @Date: 2025/2/25
    */
    List<AccountSets> accountSetsList(Long userId);
}
